package me.firstapp.repository.weixin.product;

import java.util.List;
import java.util.Map;

import me.firstapp.common.utils.Page;
import me.firstapp.module.weixin.product.Product;
import me.firstapp.repository.base.EntityRepository;

public interface ProductRepository extends EntityRepository<Product> {

	Page<Product> findProductPage(Integer pageNo, Integer pageSize, Map<String, Object> searchParams, String sortParam,
			String sortType);

	List<Product> findByCategoryId(Integer pageNo, Integer pageSize, Long productCategoryId);

	List<Product> findByKeyword(Integer pageNo, Integer pageSize, String keyword);

	List<Product> findByTuiJian();
}
